<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
<mapper namespace="${dao_package_name}.${table_name}Mapper">
    <sql id="Base_Column_List" >
    <#list model_column as model><#if model_has_next>${model.columnName},<#else>${model.columnName}</#if></#list>
    </sql>

    <!-- 查询全部-->
    <select id="select${table_name}All" resultMap="BaseResultMap" parameterType="${common_model}.${table_name}" >
        select
        <include refid="Base_Column_List" />
        from ${ori_table} where 1=1
        <include refid="where_sql" />
    <#if (content_delete_flag)>
        AND delete_flag = 0
    </#if>
        order by id Desc
    </select>
</mapper>